from selenium import webdriver
path='./chromedriver.exe'
browser=webdriver.Chrome(path)
url='https://www.baidu.com/'
browser.get(url)


#el=browser.find_element("xpath","//input[@id='kw']")
el=browser.find_elements("class name","title-content-title")[0]
el=el.text
print(el)